package com.ruoyi.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 核酸超时管理对象 t_nucleate_overtime
 *
 * @author ruoyi
 * @date 2022-10-18
 */
@Data
public class TNucleateOvertime extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 任务名
     */
    @Excel(name = "任务名")
    private Long taskId;

    /**
     * 楼栋
     */
    @Excel(name = "楼栋")
    private Long buildingId;

    /**
     * 小区名
     */
    @Excel(name = "小区名")
    private Long communityId;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String state;

    /**
     * 住户
     */
    @Excel(name = "住户")
    private Long residentId;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    private TResident resident;

    private TReleaseTask task;

    private TCommunity community;

    private TBuilding building;



    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setBuildingId(Long buildingId) {
        this.buildingId = buildingId;
    }

    public Long getBuildingId() {
        return buildingId;
    }

    public void setCommunityId(Long communityId) {
        this.communityId = communityId;
    }

    public Long getCommunityId() {
        return communityId;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getState() {
        return state;
    }

    public void setResidentId(Long residentId) {
        this.residentId = residentId;
    }

    public Long getResidentId() {
        return residentId;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("taskId", getTaskId())
                .append("buildingId", getBuildingId())
                .append("communityId", getCommunityId())
                .append("state", getState())
                .append("residentId", getResidentId())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .toString();
    }
}
